<?php
$data_to_encode = '7829123esdfs98ds8fs98df9s8f9d'; 
                         
// Generate Barcode data 
$barcode->barcode(); 
$barcode->setType('C128'); 
$barcode->setCode($data_to_encode); 
$barcode->setSize(80,200); 

// Generate filename             
$random = rand(0,1000000); 
$file = 'img/barcode/code_'.$random.'.jpg'; 

// Generates image file on server             
$barcode->writeBarcodeFile($file); 

// Display image 
echo $html->image('barcode/code_'.$random.'.jpg');

echo $this->Qrcode->text($data_to_encode);



